import greenfoot.*;  // (Actor, World, Greenfoot, GreenfootImage)

public class CrabWorld extends World
{
    /**
     * Create the crab world (the beach). Our world has a size 
     * of 560x560 cells, where every cell is just 1 pixel.
     */
    public CrabWorld() 
    {
        super(560, 560, 1);
        addObject(new Crab(),200,200);
        addObject(new Lobster(),100,100);
        addObject(new Lobster(),400,400);
        addObject(new Worm(),100,300);
        addObject(new Worm(),200,500);
        addObject(new Worm(),450,400);
        addObject(new Worm(),150,60);
        addObject(new Worm(),400,150);
    }
    public void showScore(int score)
    {
        showText("消灭了"+score+"只",50,10);
    }
    
}